package org.frog.sgs.card.role;

import org.frog.sgs.card.AbstractCard;
import org.frog.sgs.card.role.type.RoleType;

/**
 * @author duanxiangqi
 * @date 2012-10-15
 */
public abstract class AbstractRole extends AbstractCard implements Role {

	private static final long serialVersionUID = 1434418040322045999L;

	public boolean isZhugong() {
		return getRoleType() == RoleType.zhugong;
	}

	public boolean isZhongchen() {
		return getRoleType() == RoleType.zhongchen;
	}

	public boolean isNeijian() {
		return getRoleType() == RoleType.neijian;
	}

	public boolean isFanzei() {
		return getRoleType() == RoleType.fanzei;
	}
}
